function FC_ExportReady()
{
	/*alert("The chart with DOM ID as " + DOMId + " has finished capture mode. It's now ready to be downloaded");
	var myExportComponent = new FusionChartsExportObject("fcExport", base_url+"assets/swf/FCExporter.swf");
	myExportComponent.componentAttributes.saveMode='individual';
	myExportComponent.componentAttributes.showAllowedTypes = '1';
	myExportComponent.componentAttributes.width = '200';
	myExportComponent.componentAttributes.height = '100';
	myExportComponent.Render("fcexportDiv");
	*/
	var myExportComponent = new FusionChartsExportObject("fcExport",base_url+"assets/swf/FCExporter.swf");
	myExportComponent.debugMode = true;
	myExportComponent.componentAttributes.saveMode='individual';
	myExportComponent.componentAttributes.showAllowedTypes = '1';
	myExportComponent.componentAttributes.width = '200';
	myExportComponent.componentAttributes.height = '100';
	//Render the exporter SWF in our DIV fcexpDiv      
	myExportComponent.Render("fcExportDiv"); 
}

function exportPdf()
{
	console.log($("object[id*=chart]").attr("id"));
	var chart = FusionCharts($("object[id*=chart]").attr("id"));
	console.log(chart);
	//	if (chart.hasRendered() == true){
	chart.exportChart();
//}else{
//	alert("Please wait for the chart to finish rendering before you can invoke exporting");
//}
}

function ExportMyChart() {
	window.print();
	// var chartObject = FusionCharts($("object[id*=chart]").attr("id"))
	// //var chartObject = getChartFromId($("object[id*=chart]").attr("id"));
	// console.log(chartObject);
	// console.log(chartObject.isActive());
	// chartObject.exportChart(); 
	// //if( chartObject.hasRendered() ) chartObject.exportChart(); 
}